package com.bgrconsulting.stockorderentry.service.converter;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

import com.bgrconsulting.stockorderentry.service.model.Product;

@XmlRootElement(name = "productId")
public class ProductConverter {
	
	private Product enity = null;
	
	public ProductConverter(Product product) {
		this.enity = product;
	}
	
	
	public ProductConverter() {
		this.enity = new Product();
	}
	
	@XmlElement(name = "symbol")
	public String getSymbol() {
		return enity.getSymbol();
	}
	
	@XmlElement(name = "market")
	public String getMarket() {
		return enity.getMarket();
	}
	
	@XmlElement(name = "typeCode")
	public String getTypeCode() {
		return enity.getTypeCode();
	}

}
